package cn.wolfcode.trip.app.controller;

import cn.wolfcode.trip.base.domain.SystemMessage;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.service.ISystemMessageService;
import cn.wolfcode.trip.base.util.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//系统消息资源控制器
@RestController
@RequestMapping("systemessages")
public class SystemMessageController {
    @Autowired
    private ISystemMessageService systemMessageService;

    @PutMapping
    public JsonResult updateState(SystemMessage systemMessage){
        JsonResult result = new JsonResult();
        systemMessageService.updateState(systemMessage);
        return result;
    }
}
